package com.taichuan.selfcheck.ui.fragment;

import android.os.Bundle;
import android.view.View;
import android.widget.FrameLayout;

import com.taichuan.selfcheck.R;
import com.taichuan.selfcheck.config.PropertyDefaultValue;
import com.taichuan.selfcheck.mvp.presenter.EmptyPresenter;
import com.taichuan.selfcheck.mvp.viewinterface.EmptyInterface;
import com.taichuan.selfcheck.ui.dialog.ResultDialog;
import com.taichuan.selfcheck.ui.fragment.base.AppBaseFragment;
import com.taichuan.view.PointerLocationView;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * 该类主要用于
 *
 * @author CamelLuo
 * @version 2019/12/4
 */
public class ScreenTouchFragment extends AppBaseFragment<EmptyInterface, EmptyPresenter> implements EmptyInterface {


    @BindView(R.id.fragment_screen_touch_content_layout)
    FrameLayout contentLayout;

    @Override
    protected void getBundleValues(Bundle bundle) {

    }

    @Override
    protected int setContentViewId() {
        return R.layout.fragment_screen_touch;
    }

    @Override
    protected void initView(View view, Bundle bundle) {
        contentLayout.addView(new PointerLocationView(getActivity()));
    }


    @Override
    protected EmptyPresenter createPresenter() {
        return new EmptyPresenter();
    }

    @Override
    protected boolean isAllowAutoFinishFragment() {
        return false;
    }

    @Override
    public void doOnAutoFinishFragment() {
        new ResultDialog(PropertyDefaultValue.FUNCTION_TEST_2,getResources().getString(R.string.screentouch),getContext()).show();
    }
}
